package Chapter6.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Student2 implements Serializable {
	private static final long serialVersionUID = 1L;
	private StudentPk2 id;
	private String comment;

	public Student2() {
	}

	public Student2(StudentPk2 id, String comment) {
		this.id = id;
		this.comment = comment;
	}

	@Id
	public StudentPk2 getId() {
		return id;
	}

	public void setId(StudentPk2 id) {
		this.id = id;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}
